package com.nutricia.common.util;

/**
 * 分页计算类
 *
 * @author: huangsheng
 * @date: 2017/10/20
 */
public class PageUtils {


    public static int getStart(int pageIndex, int pageSize) {
        if (pageIndex <= 0) {
            return 0;
        }
        return (pageIndex - 1) * pageSize;

    }
}
